//
//  UITextField+function.m
//  zhuanxian
//
//  Created by zhaoliang chen on 2017/11/17.
//  Copyright © 2017年 huiling. All rights reserved.
//

#import "UITextField+function.h"

@implementation UITextField (function)

//设置文字离左边的距离
- (void)setLeftInset:(CGFloat)inset {
    self.leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, inset, 0)];
    self.leftViewMode = UITextFieldViewModeAlways;
}

@end
